package com.appspot.didit.client.user;

import com.google.gwt.event.shared.GwtEvent;

public class LogoutEvent extends GwtEvent<LogoutHandler> {

    private static Type<LogoutHandler> TYPE;

    public static Type<LogoutHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<LogoutHandler>());
    }

    public LogoutEvent() {
    }

    @Override
    public final Type<LogoutHandler> getAssociatedType() {
            return getType();
    }

    @Override
    protected void dispatch(LogoutHandler handler) {
            handler.onLogout(this);
    }

}